package top.tagao.study03_Map;

import java.util.*;

/**
 * @author fu-xiao-liu
 * @Date 2022/4/16 15:06
 */
public class study_02_HashMap {
    public static void main(String[] args) {
        HashMap map = new HashMap<>();
        map.put("A","B");
        map.put("c","d");
        map.put("e","f");

        Set set = map.entrySet();
        for (Object o : set) {
           Map.Entry e = (Map.Entry) o;
        }
        Iterator iterator = set.iterator();
        while (iterator.hasNext()) {
            Object next =  iterator.next();
            System.out.println(next);
        }
    }
}
